import request from '@/utils/request'

//查询租房合同列表
export function rentingContractList(query) {
  return request({
    url: '/financial/stageRenting/getStageRentingList',
    method: 'get',
    params: query
  })
}
//查询可用金融产品   根据类型
export function getJRAProductList(id) {
  return request({
    url: '/financial/stageRenting/getJRAProductList/' + id,
    method: 'get',
  })
}
//  根据租房合同id查询
export function getRentingContractById(id) {
  return request({
    url: '/financial/stageRenting/getRentingContractById/'+id,
    method: 'get',
  })
}
//  添加租房分期申请
export function saveStageRenting(data) {
  return request({
    url: '/financial/stageRenting/saveStageRenting',
    method: 'post',
    params: data,
  })
}
//  计算器
export function getCounterList(data) {
  return request({
    url: '/financial/stageRenting/counter',
    method: 'post',
    params: data,
  })
}

